#include "mainwindow.h"
#include<QApplication>
#include<QTextCodec>

int main(int argc, char* argv[]){
    QApplication a(argc, argv);

    // set codec to gbk/cp936/gb2312
    QTextCodec* codec = QTextCodec::codecForName("GBK");
    QTextCodec::setCodecForLocale(codec);

    MainWindow w;
    w.show();

    return a.exec();
}
